package com.khaled.protclass.model.feature.sequence;

import java.util.ArrayList;

import com.khaled.protclass.model.base.BaseFeature;
import com.khaled.protclass.model.base.IProtein;
import com.khaled.protclass.model.bean.weka.Attribute;
import com.khaled.protclass.model.bean.weka.WekaDataTypes;

public class ProteinSequence extends BaseFeature
{

	@Override
	public void init()
	{
		// do nothing
	}

	@Override
	public String getName()
	{
		return "Protein Sequence";
	}

	@Override
	public ArrayList<Attribute> getAttributes()
	{
		ArrayList<Attribute> attributes = new ArrayList<Attribute>();

		attributes.add(new Attribute("ProteinSequence", WekaDataTypes.STRING));

		return attributes;
	}

	@Override
	public String getFeatureVector(IProtein protein)
	{
		StringBuffer featureVector = new StringBuffer(protein.getProteinSequence()).append(",");

		return featureVector.toString();
	}

}
